#include "ia.h"

#include "case.h"

int eval(const Plateau& pEtat, int pNbPrisesJoueur, int pNbPrisesAdversaire, int pNumero) {
	int numCaseDep = (pNumero == 2 ? 0 : 6);
	int numCaseFin = (pNumero == 2 ? 5 : 11);
	int nbGraines = 0;

	for (int i = numCaseDep; i <= numCaseFin; ++i)
		nbGraines += pEtat.m_cases[i]->nbGraines();

	if (nbGraines > 0)
		return pNbPrisesJoueur - pNbPrisesAdversaire;
	else
		return -1000;
}

